/**@Title   IndexServlet.java
 * @Package com.gong.common
 * @Desc    
 * @Author  GongWenhua
 * @Date    2017年6月30日 下午5:16:04
 * @Version 1.0
*/
package com.gong.common;

import java.io.IOException;

import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@WebServlet(name="hello",urlPatterns="/hello")
public class IndexServlet extends HttpServlet{
	public void doGet(HttpServletRequest request,HttpServletResponse response) throws IOException{
		response.getWriter().print("Hello World");
		response.getWriter().flush();
		response.getWriter().close();
	}
	
	public void doPost(HttpServletRequest request ,HttpServletResponse response) throws IOException{
		this.doGet(request, response);
	}
}
